#pragma once
#include <stdio.h>
#include <iostream>
#include <string.h>
#include <curl/curl.h>
#include <fstream>
#include <memory>
#include "encode.h"
#include <json/json.h>
#include "CJsonConfig.h"
#include "CMesssageOpt.h"

using namespace std;

class CBaiduAIIO
{
public:
	CBaiduAIIO();
	~CBaiduAIIO();

	CURLcode Ask(const string& sAsk,string& sResponse);
protected:
	string GetAccessToken();
	string GetResponse(const string& str);
protected:
	string m_sClientId;
	string m_sClientSecret;
	string m_sAccessToken;
	CMesssageOpt m_cMessage;
};

